class Animal {
	name: string = '孙悟空';
	age: number = 18;
    say(){
        console.log(`我叫${this.name},我今年${this.age},我会汪汪汪叫`);  
    }
}

class lion extends Animal{
    say(): void {
        console.log('我是子类重写方法');
    }
}

class element extends Animal{
    constructor(){
        // 调用父类构造函数
        super()
    }
}

let li= new lion()
li.say()
